// 组件的嵌套
import React, {Component} from 'react';

class Navbar extends Component{
    render(){
        return(<div>
            navbar
        </div>)
    }
}
function Swiperbar() {
    return(<div>
        swiperbar
    </div>)
}
const Tabbar = () => <div>tabbar</div>
class nesting extends Component
{
    render()
    {
        return (
            <div>
                <Navbar></Navbar>
                <Swiperbar></Swiperbar>
                <Tabbar></Tabbar>
            </div>
        );
    }
}

export default nesting ;
